<template>
  <div class="vite">
    <micro-app
      name="vite"
      :url="VITE_viteHost"
      inline
      disableSandbox
      :data="microAppData"
    >
      <!-- destory inline scopecss='false' -->
    </micro-app>
  </div>
</template>

<script setup>
const VITE_viteHost = import.meta.env.VITE_viteHost;
const microAppData = {
  pushState: (path) => {
    history.pushState(
      null,
      // {
      //   time: new Date().getTime(),
      // },
      null,
      path
    );
    window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
  },
};
</script>

<style></style>
